package com.pro01.backend.pojo;
import java.sql.Timestamp;
import java.time.LocalDateTime;

import lombok.Data;

@Data
public class ForumPost {
    private Long id;
    private Long forumId;
    private Long userId;
    private String title;
    private String content;
    private Boolean isPinned;    // 是否置顶
    private String status;       // ACTIVE / HIDDEN / DELETED
    private Integer viewCount;
    private Integer commentCount;
    private Integer likeCount;         // ✅ 新增点赞数字段
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // 新增字段
    private String forumName; // 板块名称

    private Boolean hasLiked;  // ✅ 运行时计算字段，不对应数据库列

    // 用户扩展字段
    private String username;
    private String userTitle;
    private String nicknameColor;
    private String avatarFrame;
}

